package br.com.firula.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.firula.bo.PromocaoBO;
import br.com.firula.dao.PromocaoDAO;
import br.com.firula.to.PromocaoTO;

@SuppressWarnings("unchecked")
@Service("promocaoBO")
public class PromocaoBOImpl extends GenericBOImpl implements PromocaoBO {

    @Autowired
    public void setPromocaoDAO(PromocaoDAO dao) {
        this.dao = dao;
    }

    public PromocaoBOImpl(){
    	setType("br.com.firula.to.PromocaoTO");
    }

    public PromocaoTO getPromocaoById(String id) {
    	return (PromocaoTO)get(id);
    }
}